home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr52
/
ncclib.zip
/
NCCMENU.DOC
< prev
next >
Wrap
Text File
|
1993-05-02
|
5KB
|
66 lines
┌──────────────────────────────────────────────────────────────────────────────┐
│ Inherited from NccView │
│ i.e. Refer to NccView for additional instance variables and methods. │
└──────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┬────────────┐
│Instance Variables Value Description │ NccMenu │
├─────────────────┬─────────────┬─────────────────────────────────┴────────────┤
│Active │ <lExp> │ Flag indicating the state of NccMenu │
│Shadow │ <lExp> │ Flag indicating the use of shadow on NccMenu │
│MouseActive │ <lExp> │ Flag indicating the use of mouse with the │
│ │ │ standard Reader │
│MenuReader │ <bExp> │ Codeblock used to process NccMenu │
│Prompts │ <aExp> │ Array of NccPrompt objects │
│Border │ <xExp> │ 1..5 or string used to make border of NccMenu│
│Bordercolor │ <cExp> │ Color string for border and lines in menu │
│Lettercolor │ <cExp> │ Color string for letter used to select prompt│
│Grayedcolor │ <cExp> │ Not Active prompt Color │
│Messagecolor │ <cExp> │ Color used for message │
└─────────────────┴─────────────┴──────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┬────────────┐
│Methods Functions Description │ NccMenu │
├──────────────────────────────┬──────────────────────────────────┴────────────┤
│AddPrompt([<nId>], ; │ Id returned be selection │
│ [<cTitle>], ; │ Title for prompt │
│ [<lActive>], ; │ Active flag │
│ [<lChecked>], ; │ Checked flag │
│ [<cMessage>], ; │ Message to be display on Message line │
│ [<oSubMenu>] ; │ SubMenu │
│ ) │ │
│ │ │
│AddPromptLine() │ Draw a line on the menu │
│ │ │
│AddMessage([<nId>], ; │ Add a message to a prompt │
│ [<cTitle>] ; │ │
│ ) │ │
│ │ │
│Activate() │ Give control to menu reader │
│ │ │
│Show([<nCurrent>]) │ display menu and exit │
│ │ │
│Hide() │ hide displayed menu │
│ │ │
│PromptCheck([<nCur>], ; │ test or toggle checked flag for a prompt │
│ [<lChecked>] ; │ │
│ ) │ │
│ │ │
│PromptActive([<nCur>], ; │ test or toggle active flag for a prompt │
│ [<lActive>] ; │ │
│ ) │ │
│ │ │
│PromptSubMenu([<nCur>], ; │ test or add submenu to a prompt │
│ [<oSub>] ; │ │
│ ) │ │
│ │ │
│MenuChoice([<nCur>], ; │ set pointer to current prompt in NccMenu │
│ [<lNoDisplay>] ; │ <lNoDisplay> = Display <nCur> item now │
│ ) │ │
│ │ │
│MenuSelection() │ return id of prompt selected │
│ │ │
│KeySeek(<nKey>) │ return pointer to where <nKey> was found in │
│ │ prompts │
└──────────────────────────────┴───────────────────────────────────────────────┘